<template>
	<view class="page">
		<view class="header">
			<view class="header-item" @click="click('全部')" :class="{ checked: actives === '全部' }">全部 <view class="heng"
					v-if="actives === '全部'"></view>
			</view>
			<view class="header-item" @click="click('积分获取')" :class="{ checked: actives === '积分获取' }">积分获取 <view
					class="heng" v-if="actives === '积分获取'"></view>
			</view>
			<view class="header-item" @click="click('积分消耗')" :class="{ checked: actives === '积分消耗' }">积分消耗 <view
					class="heng" v-if="actives === '积分消耗'"></view>
			</view>
			</u-tabs>
		</view>
		<view class="content">
			<view class="item" v-for="(item,index) in list" :key="index" :class="{ checke: index === list.length-1 }">
				<view class="item-title">{{item.time}}</view>
				<view class="item-title">{{item.title}}</view>
				<view class="item-title">{{item.Number}}</view>
			</view>
			<!-- 	<view class="item">
		<view class="item-title">2024-01-24</view>
		<view class="item-title">签到奖励</view>
			<view class="item-title">+50</view>
	</view>
	<view class="item">
		<view class="item-title">2024-01-24</view>
		<view class="item-title">设置邮箱地址</view>
			<view class="item-title">+50</view>
	</view>
	<view class="item">
		<view class="item-title">2024-01-24</view>
		<view class="item-title">签到奖励</view>
			<view class="item-title">+50</view>
	</view> -->
			<!-- <view class="heng">
		
	</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				actives: '全部',
				list: [{
						time: '2024-01-24',
						title: '设置公司信息',
						Number: '+50'
					},
					{
						time: '2024-01-24',
						title: '设置公司信息',
						Number: '+50'
					},
					{
						time: '2024-01-24',
						title: '设置公司信息',
						Number: '+50'
					},
				]
			}
		},
		methods: {
			click(item) {
				this.actives = item
			}
		}
	}
</script>

<style lang="scss" scoped>
	::v-deep .u-tabs {
		height: 88rpx !important;
	}

	::v-deep .u-tabs__wrapper {
		height: 88rpx !important;

	}

	::v-deep .u-tabs__wrapper__nav {
		padding: 0 68rpx;
		height: 88rpx !important;
		// display: flex;
		// justify-content: space-between;
	}

	.page {
		background-color: #F0F2F5;
		min-height: 100vh;

		.header {
			width: 750rpx;
			height: 88rpx !important;
			background: #FFFFFF;
			border-radius: 0rpx;
			border-top: 1rpx solid #DDDDDD;
			padding: 0 68rpx;
			display: flex;
			justify-content: space-between;

			.header-item {
				height: 82rpx;
				font-family: PingFang SC;
				font-weight: 600;
				font-size: 32rpx;
				color: #A9B1BE;
				line-height: 88rpx;

				.heng {
					width: 40rpx;
					height: 4rpx;
					background: #FFFFFF;
					margin: -4rpx auto;
				}
			}

			.checked {
				height: 82rpx;
				font-family: PingFang SC;
				font-weight: 600;
				font-size: 32rpx;
				color: #F43107;
				line-height: 88rpx;

				.heng {
					width: 40rpx;
					height: 4rpx;
					background: #F43107;
					margin: -4rpx auto;

				}
			}
		}

		.content {
			width: 750rpx;
			background: #FFFFFF;
			border-radius: 0rpx;
			margin-top: 20rpx;

			.item {
				width: 690rpx;
				height: 88rpx;
				background: #FFFFFF;
				border-radius: 0rpx;
				display: flex;
				padding: 24rpx 30rpx;
				justify-content: space-between;
				border-bottom: 1rpx solid #DDDDDD;
				margin: 0 auto;
			}

			.checke {
				border-bottom: none;
			}
		}
	}
</style>